home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 April: Mac OS SDK / Dev.CD Apr 96 SDK / Dev.CD Apr 96 SDK1.toast / Development Kits (Disc 1) / OpenDoc Development Framework / ODFDev / ODF / Examples / Hello / Include / HelloSel.h < prev    next >
Encoding:
Text File  |  1995-11-08  |  2.4 KB  |  86 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                HelloSel.h
  4. //    Release Version:    $ 1.0d11 $
  5. //
  6. //    Copyright:    © 1995 by Apple Computer, Inc., all rights reserved.
  7. //
  8. //========================================================================================
  9.  
  10. #ifndef HELLOSEL_H
  11. #define HELLOSEL_H
  12.  
  13. // ----- Framework Includes -----
  14.  
  15. #ifndef FWSELECT_H
  16. #include "FWSelect.h"
  17. #endif
  18.  
  19. //========================================================================================
  20. //    Forward Declarations
  21. //========================================================================================
  22.  
  23. #if FW_LIB_EXPORT_PRAGMAS
  24. #pragma import on
  25. #endif
  26. class FW_CLASS_ATTR FW_CCloneInfo;
  27. #if FW_LIB_EXPORT_PRAGMAS
  28. #pragma import off
  29. #endif
  30.  
  31. class FW_CLASS_ATTR CHelloPart;
  32. class FW_CLASS_ATTR FW_CString;
  33.  
  34. //========================================================================================
  35. //    class CHelloSelection
  36. //========================================================================================
  37.  
  38. class FW_CLASS_ATTR CHelloSelection : public FW_CSelection
  39. {
  40.     
  41. //----------------------------------------------------------------------------------------
  42. //    Initialization/Destruction
  43. //
  44.   public:
  45.     CHelloSelection(Environment* ev, CHelloPart* helloPart);
  46.     virtual ~CHelloSelection();
  47.     
  48. //----------------------------------------------------------------------------------------
  49. //    Inherited API
  50. //
  51.   public:
  52.     virtual void        CloseSelection(Environment* ev);
  53.     virtual FW_Boolean    ClearSelection(Environment* ev);
  54.     virtual FW_Boolean    IsEmpty(Environment* ev) const;
  55.     virtual void        SelectAll(Environment* ev);
  56.  
  57.     virtual void        DoExternalizeSelection(Environment* ev, 
  58.                                                ODStorageUnit* destinationSU, 
  59.                                                FW_CCloneInfo* cloneInfo);
  60.  
  61.     virtual FW_Boolean    DoInternalizeSelection(Environment* ev, 
  62.                                                ODStorageUnit* sourceSU, 
  63.                                                FW_CCloneInfo* cloneInfo);
  64.                         
  65. //----------------------------------------------------------------------------------------
  66. //    Private Methods
  67. //
  68.   private:
  69.     FW_Boolean             InternalizeText(Environment* ev,
  70.                                         ODStorageUnit* storageUnit, 
  71.                                         FW_CString& newString);
  72.  
  73.     FW_Boolean            Internalize1String(Environment* ev, 
  74.                                            ODStorageUnit* storageUnit,
  75.                                            FW_CString& newString);
  76.                                 
  77. //----------------------------------------------------------------------------------------
  78. //    Data Members
  79. //
  80.   private:
  81.     CHelloPart*        fHelloPart;
  82. };
  83.  
  84.  
  85. #endif
  86.